package com.zfh.adapterAgent;

/**
 * <h1>继承抽象类，实现对应的方法即可
 * @author fhzheng
 *
 */
public class PrintBanner extends Print {

	// 广告实例声明
	private Banner banner;
	
	// 用构造器生成实例
	public PrintBanner(String str) {
		this.banner = new Banner(str);
	}
	@Override
	public void printWeak() {
		banner.showWithParen();
	}

	@Override
	public void printStrong() {
		banner.showWithAstar();		
	}

}
